/*
 * @Author: your name
 * @Date: 2021-04-18 16:41:13
 * @LastEditTime: 2021-04-18 17:02:03
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \新建文件夹\the-third-group\patient-app\src\store\doctor.js
 */
import axios from '../utils/request'
// import store from './index'
const doctor = {
    namespace: true,
    state: {
        docList: []
    },
    mutations: {
        get_docList(state, payload) {
            state.docList = payload
        }
    },
    actions: {
        async getDocList({commit}, payload) {
            const { data: res } = await axios.get('/api/docList')
            console.log(res)
            commit('get_docList', res)
        }
    },
    modules: {
    }
}

export default doctor